package com.dao;

import com.pojo.Books;

import java.util.List;

public interface BooksMapper {
    //增加一本书
    public abstract void addBooks(Books book);
    //删除一本书
    public abstract void delBooks(int id);
    //更新一本书
    public abstract void updBooks(Books book);
    //查询一本书
    public abstract Books selBooks(int id);
    //查询所有的书
    public abstract List<Books> selAllBooks();

    public abstract List<Books> selBooksByName(String bookName);
}
